主题
是否显示匹配结果弹窗 - ShowMatchWindow
函数简介
设置是否显示匹配结果弹窗(测试使用),默认不显示,需在识别函数之前设置,开启后所有的找图、找字、识字等函数都会弹窗显示结果。
接口名称
ShowMatchWindowDLL调用
int ShowMatchWindow(long ola, int flag);参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| ola | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| flag | 整数型 | 显示控制:0-不显示弹窗;1-显示弹窗 |
示例
SDK 调用
cpp
#include "OLAPlugServer.h"
OLAPlugServer ola;
int ret = ola.ShowMatchWindow(1);csharp
using OLAPlug;
var ola = new OLAPlugServer();
int ret = ola.ShowMatchWindow(1);python
from OLAPlugServer import OLAPlugServer
ola = OLAPlugServer()
ret = ola.ShowMatchWindow(1)java
import com.olaplug.OLAPlugServer;
import com.olaplug.model.MatchResult;
import java.util.List;
OLAPlugServer ola = new OLAPlugServer();
ola.ShowMatchWindow(1);cpp
var ola = com("OlaPlug.OlaSoft")
ola.ShowMatchWindow(1);vbscript
Set ola = CreateObject("OlaPlug.OlaSoft")
ola.ShowMatchWindow(1);text
.局部变量 ola, OLAPlug
ola.创建 ()
ola.ShowMatchWindow(1);aardio
import OLAPlugServer;
var ola = OLAPlugServer();
ola.ShowMatchWindow(1);text
变量 ola <类型 = OLAPlugServer>
ola = 新建 OLAPlugServer
ola.ShowMatchWindow(1);cpp
#include "OLAPlugServer.h"
OLAPlugServer ola;
ola.ShowMatchWindow(1);原生 DLL 调用
cpp
long instance = CreateCOLAPlugInterFace();
ShowMatchWindow(instance, 1);csharp
using System.Runtime.InteropServices;
[DllImport("OLAPlug_x64.dll", CallingConvention = CallingConvention.StdCall)]
static extern long CreateCOLAPlugInterFace();
[DllImport("OLAPlug_x64.dll", CallingConvention = CallingConvention.StdCall)]
static extern int ShowMatchWindow(long ola, int flag);
long instance = CreateCOLAPlugInterFace();
ShowMatchWindow(instance, 1);python
from ctypes import CDLL, c_int64
ola = CDLL("OLAPlug_x64.dll")
ola.CreateCOLAPlugInterFace.restype = c_int64
instance = ola.CreateCOLAPlugInterFace()
ret = ola.ShowMatchWindow(instance, 1)返回值
整数型:1 成功,0 失败。
